package 简单工厂模式;


public class DivOperation extends Operation {

	public double getResult() {
		if(this.getNumber2()==0){
			return -1;
		}else{
			return this.getNumber1()/this.getNumber2();
		}
	}
}
